// 入口文件
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root = "http://www.escook.cn:3000"
Vue.http.options.emulateJSON = true


import { Header, Swipe, SwipeItem,Button  } from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);

import './lib/mui/css/mui.min.css'
import  './lib/mui/css/icons-extra.css'
import './lib/mui/fonts/mui-icons-extra.ttf'

import app from './App.vue'
import router from './router.js'


// 时间全局过滤器
import moment from 'moment'
Vue.filter('dataFormat', function (dataStr, pattern ='YYYY-MM-DD HH:mm:ss'){
    return moment(dataStr).format(pattern)
})




var vm = new Vue({
    el:'#app',
    render:c => c(app),
    router
})